<form autocomplete="off" class='layui-form layui-card' data-auto="true" method="post" action="{:request()->url()}" onsubmit="return false;">
    <div class="layui-card-body padding-40">
        <label class="layui-form-item block">
            <span class="font-w7 color-green">到期时间设置</span>
            <input type="text" class="layui-input" id="test1" name="end_at" value="{$end_at}">
        </label>
        <div class="hr-line-dashed margin-top-40"></div>
        <label class="layui-form-item block">
            <span class="font-w7 color-green">到期利率设置</span>
            <input class="layui-input" data-value-min="1" data-blur-number="2" data-value-max="100" name="goods_annual_rate"  placeholder="请输入年利率" value="{$goods_annual_rate|default=0}">
        </label>
        <input name="order_id" type="hidden" value="{$id}">
        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">确定修改</button>
        </div>

    </div>
</form>
{block name='script'}

<script>
    /*! 表单初始化 */
    window.form.render();
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //常规用法
        laydate.render({
            elem: '#test1'
        });

    });

</script>
{/block}